﻿using System.Collections.Generic;
using System.Windows.Controls;

namespace GreenXi.Pages.Power
{
    /// <summary>
    /// productivity.xaml 的交互逻辑
    /// </summary>
    public partial class productivity : UserControl
    {
        public productivity()
        {
            InitializeComponent();

            StudentList = new List<StudentInfo>()
            {

                   new StudentInfo()
                {

                    Name="1号压缸",
                    Address="A",

                    result=98 + "%",
                    time="2023/6/15",

                },
                   new StudentInfo()
                {
                   Name="1号压缸",
                    Address="A",
                    result=98 + "%",
                    time="2023/6/14",
                },
                     new StudentInfo()
                {
                     Name="1号压缸",
                    Address="A",
                    result=98 + "%",
                    time="2023/6/14",
                },
                  new StudentInfo()
                {
                     Name="1号压缸",
                    Address="A",
                    result=98 + "%",
                    time="2023/6/14",
                },
                   new StudentInfo()
                {
                     Name="1号压缸",
                    Address="A",
                    result=98 + "%",
                    time="2023/6/14",
                },
                      new StudentInfo()
                {
                     Name="1号压缸",
                    Address="A",
                    result=98 + "%",
                    time="2023/6/14",
                },
                   new StudentInfo()
                {
                     Name="1号压缸",
                    Address="A",
                    result=98 + "%",
                    time="2023/6/14",
                },
                     new StudentInfo()
                {
                      Name="1号压缸",
                    Address="A",
                    result=98 + "%",
                    time="2023/6/14",
                },
                  new StudentInfo()
                {
                      Name="1号压缸",
                    Address="A",
                    result=98 + "%",
                    time="2023/6/14",
                },
                   new StudentInfo()
                {
                      Name="1号压缸",
                    Address="A",
                    result=98 + "%",
                    time="2023/6/14",
                },
            };

            simpleDemoDataGrid.DataContext = StudentList;
        }

        public List<StudentInfo> StudentList { get; set; }
        public class StudentInfo
        {
            public string Name { get; set; }

            public string Address { get; set; }
            public string result { get; set; }
            public string time { get; set; }
            public string Variable3 { get; set; }
        }
    }
}
